package com.education.dao.test;


import com.education.dao.TeacherDao;
import com.education.model.TeacherModel;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

/**
 * 测试类
 * @author Administrator
 *
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:spring/spring-mybatis.xml" })
public class TesDao {

    @Autowired
    private TeacherDao dao;
    @Test
    public void insertt(){

        List list=dao.getPageTeachers(null,"");
        System.out.print(list.size());
    }

}
